# -*- coding: utf-8 -*-
# Description:
# Created: dingwenjing 2022/11/29

from flask import Blueprint
from flask_restful import Api

from app.main.api.hello import HelloAPi
from app.main.api.performance_prediction_model_api import PerformancePredirtionAPI
from app.main.api.performance_prefiction_evaluation_api import PerformancePredirtionEvaluationAPI
from app.main.api.performance_predictiom_imitate_api import PerformancePredirtionImitateAPI


blueprint = Blueprint('main', __name__)
api = Api(blueprint)

# 接口注册示例，加接口可在下面追加，并将入口类引入
# 主要程序流：init文件注册接口->api定义入口类(控制层)-> service业务逻辑层->dao数据访问层
api.add_resource(HelloAPi, '/hello')

#模型训练模型查询接口
api.add_resource(PerformancePredirtionAPI, '/ppm_train')
# api.add_resource()

#模型评估查询接口
api.add_resource(PerformancePredirtionEvaluationAPI, '/ppm_evaluation')

#在线模拟模型查询接口
api.add_resource(PerformancePredirtionImitateAPI, '/ppm_imitate')




